<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<form id="form-member">
    <div class="form-group">
        <label for="id">会员编号</label>
        <input type="text" class="form-control" value="${member.id}" id="id" name="id" readonly placeholder="请输入会员编号">
    </div>
    <div class="form-group">
        <label for="name">会员姓名</label>
        <input type="text" class="form-control" value="${member.name}" id="name" name="name" placeholder="请输入会员姓名">
    </div>
    <div class="form-group">
        <label for="identitycard">身份证号</label>
        <input type="text" class="form-control" id="identitycard" value="${member.identitycard}" name="identitycard"
               placeholder="请输入身份证号">
    </div>
    <div class="form-group">
        <label for="account">账号</label>
        <input type="text" class="form-control" value="${member.account}" id="account" name="account"
               placeholder="请输入账号">
    </div>
    <div class="form-group">
        <label for="balance">余额</label>
        <input type="number" class="form-control" value="${member.balance}" id="balance" name="balance"
               placeholder="请输入余额">
    </div>
    <div class="form-group">
        <label for="phone">手机号码</label>
        <input type="text" class="form-control" value="${member.phone}" id="phone" name="phone" placeholder="请输入手机号码">
    </div>
    <div class="form-group">
        <label for="memberlevel">等级</label>
        <select name="memberlevel" id="memberlevel">
            <c:forEach items="${levelList}" var="level">
                <c:choose>
                    <c:when test="${member.memberlevel.id==level.id}">
                        <option selected value="${level.id}">${level.name}</option>
                    </c:when>
                    <c:otherwise>
                        <option value="${level.id}">${level.name}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
    </div>
    <div class="form-group">
        <label for="state">状态</label>
        <select name="state" id="state">
            <c:forEach items="${stateList}" var="state">
                <c:choose>
                    <c:when test="${member.state.id==state.id}">
                        <option selected value="${state.id}">${state.name}</option>
                    </c:when>
                    <c:otherwise>
                        <option value="${state.id}">${state.name}</option>
                    </c:otherwise>
                </c:choose>
            </c:forEach>
        </select>
    </div>
</form>

